File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -91,26 +91,4 @@ public function testSearch()
9191 $ this ->assertEquals ('The Life and Death of Colonel Blimp ' , $ search_2 ['titles ' ][0 ]['title ' ]);
9292 $ this ->assertEquals ('tt0036112 ' , $ search_2 ['titles ' ][0 ]['id ' ]);
9393 }
94-
95- public function test404Page ()
96- {
97- $ imdb = new Imdb ;
98- $ response = new Response ;
99-
100- $ film = $ imdb ->film ('ttest404 ' , [ 'cache ' => false ]);
101- $ film_search = $ imdb ->film ('interstellartest4040404040404 ' , [ 'cache ' => false ]);
102- $ search = $ imdb ->search ('ttest404040404004 ' , [ 'category ' => 'test404 ' ]);
103-
104- $ emptyResponse = [
105- 'film ' => $ response ->default ('film ' ),
106- 'film_search ' => $ response ->default ('film ' ),
107- 'search ' => $ response ->default ('search ' ),
108- ];
109- $ emptyResponse ['film ' ]['id ' ] = 'ttest404 ' ;
110-
111- $ this ->assertEquals ($ emptyResponse ['film ' ], $ film );
112- $ this ->assertEquals ($ emptyResponse ['film_search ' ], $ film_search );
113- $ this ->assertEquals ($ emptyResponse ['search ' ], $ search );
114- }
115-
11694}
You can’t perform that action at this time.
0 commit comments